home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.02 Feb 95 / Yenta / Erics C++ Libraries / Interface Classes / CPPDialogText.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-04  |  977 b   |  42 lines  |  [TEXT/KAHL]

  1. /********************************************************* DEFINITION
  2.     DATE:    9/28/93
  3.     AUTHOR: Eric R. Rosé
  4.     
  5.     CLASS:  CPPDialogText
  6.     
  7.     SUPERCLASS: CPPFilterText
  8.     
  9.         This C++ class manages a textedit area with no scrollbars and
  10.         a length limit of 255 characters.
  11.     
  12. ********************************************************************/
  13.  
  14. #pragma once
  15.  
  16. #include <CPPFilterText.h>
  17.  
  18. class CPPDialogText : public CPPFilterText {
  19. public:
  20.  
  21.             CPPDialogText (CPPWindow *OurWindow,
  22.                            Rect *itsBounds,
  23.                            StringPtr defaultString,
  24.                            int maxLength = 255,
  25.                            int Font = geneva,
  26.                            int FSize = 9);
  27.             CPPDialogText (CPPWindow *OurWindow,
  28.                            Rect *itsBounds,
  29.                            short StringID,
  30.                            int maxLength = 255,
  31.                            int Font = geneva,
  32.                            int FSize = 9);
  33.             ~CPPDialogText (void);
  34.     
  35.     virtual    char    *ClassName (void);
  36.  
  37.     virtual    void    TargetHilite (Boolean makeTarget);
  38.  
  39.     StringPtr    GetAsString (void);
  40.     void    SetToString (StringPtr newString);
  41.     
  42. };